package org.ajc.gift.exception;

public enum ResponseCode {
    RESPONSE_CODE_200(200,"操作成功!"),
    RESPONSE_CODE_400(400,"参数错误!"),
    RESPONSE_CODE_400001(400001,"两次密码不一致,请检查后重新提交!"),
    RESPONSE_CODE_400002(400002,"店铺已存在,请检查后重新提交!"),
    RESPONSE_CODE_400003(400003,"该店铺管理员信息重复!"),
    RESPONSE_CODE_400004(400004,"店铺名字违规"),
    RESPONSE_CODE_400005(400005,"该手机号已经注册过,请直接登录"),
    RESPONSE_CODE_400006(400006,"图形验证码过期,请重新获取"),
    RESPONSE_CODE_400007(400007,"图形验证码不一致"),
    RESPONSE_CODE_400008(400008,"发送过于频繁,请稍后再试"),
    RESPONSE_CODE_400009(400009,"手机验证码有误,请求重新输入"),
    RESPONSE_CODE_400010(400010,"用户名或密码错误"),
    RESPONSE_CODE_500(500,"网络异常!请稍后重试!");


    private Integer code;//错误码
    private String msg;//错误的信息描述

    ResponseCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
